import request from "@/utils/request";
import qs from "qs";
export function login(account, password) {
  return request({
    url: `/web/common/login?${qs.stringify({ account, password })}`,
    method: "post"
  });
}

export function userInfo() {
  return request({
    url: "/web/common/accessMenu",
    method: "get",
    hideloading: true
  });
}

export function updateUserInfo(info) {
  return request({
    url: "/admin/account/info",
    method: "put",
    data: info
  });
}